package decome02;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class ListMap1 {
    public static void main(String[] args) {
        List<HashMap> list = new ArrayList();
        HashMap<String, String> map = new HashMap<>();
        HashMap<String, String> map2 = new HashMap<>();
        HashMap<String, String> map3 = new HashMap<>();
        map.put("name","张三");
        map.put("id","1");
        map.put("age","19");
        list.add(map);

        map2.put("name","李四");
        map2.put("id","2");
        map2.put("age","22");
        list.add(map2);

        map3.put("name","王五");
        map3.put("id","3");
        map3.put("age","25");
        list.add(map3);
        System.out.println(list);



    }

}
